# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=asteroid
pkgname=asteroid-compass
pkgver=2.0.0
pkgrel=0
pkgdesc="Default compass app for AsteroidOS"
url="https://github.com/AsteroidOS/asteroid-compass"
# armhf blocked by qml-asteroid
arch="all !armhf"
license="GPL-3.0-or-later"
depends="
	mapplauncherd
	qt5-qtsensors
	"
makedepends="
	extra-cmake-modules
	qml-asteroid-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	samurai
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/AsteroidOS/asteroid-compass/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
b08e5b6a8b5102298e9ac511b088b926ac8a6e1230bf4643a86e759732015cc3f6dcb31d40f2481b55a76c098928d0da09501b1313c508c3670e36afb49707b4  asteroid-compass-2.0.0.tar.gz
"
